Skip to content

fix(benchmark): restore frozen v1 archives and align checkpoint/runtime tests with C1 defaults - #9151

Merged
loopx-agent merged 1 commit into
mainfrom
codex/release-2.4.0-benchmark-fixes-20261121
Nov 20, 2026
Merged

loopx-agent merged 1 commit into
mainfrom
codex/release-2.4.0-benchmark-fixes-20261121

Conversation

@loopx-agent

Copy link
Copy Markdown
Collaborator

Summary

Stabilize benchmark/ runtime, frozen v1 archive integrity checks, and test suites on top of origin/main (dcf208c855) for v2.4.0.

Root Causes & Changes

  1. Restore frozen v1 benchmark archive snapshots (benchmark/deepswe-gptxhigh-v1/goal_codex.py, benchmark/frontiercs2-single-host-v1/local_runner.py)

    • Commit cc5392e953 (Fix bootstrap guidance and verified repository audit findings #9113) removed an apparently unused local binding (runner_source = getattr(self, "_goal_runner_source", None)) and import sys inside frozen immutable v1 archive snapshots, breaking benchmark/check_deepswe_v1.py, benchmark/check_frontiercs2_v1.py, and benchmark/tests/test_deepswe_v1_archive.py.
    • Restored both lines byte-for-byte from cc5392e953^ so the archived snapshot checksums and verification checks pass intact.
  2. Align CheckpointWake and benchmark tests with default complete-v1 guard output (benchmark/runtime/checkpoint_wake.py, benchmark/runtime/RUNTIME.md, benchmark/tests/test_native_checkpoint.py, benchmark/tests/test_task_entry.py, benchmark/tests/test_sforge_runtime.py)

    • Commit 45dce4c4c8 stopped loopx/control_plane/heartbeat/builder.py from emitting retired --complete-turn and --turn-envelope CLI aliases in generated quota should-run guards, because --runtime-profile generic_cli and --decision-handoff-socket already select loopx_turn_envelope_v1.
    • CheckpointWake._capture still copied self.receipt.get("complete_turn", False) into guard["complete_turn"], causing codex_checkpoint._verify_interrupted_guard to reject real complete-mode resumed guards. Setting "complete_turn": False aligns sealed guard binding with the current generated command while keeping unexpected --complete-turn flags rejected.
    • Clarified the current default complete-v1 guard behavior in benchmark/runtime/RUNTIME.md and updated assertions in test_native_checkpoint.py, test_task_entry.py, and test_sforge_runtime.py while keeping settlement mode-binding (--complete-turn mismatch failure path), --decision-output-root, and loopx_turn_envelope_v1 invariants intact.
  3. Isolate standalone benchmark/ test imports from tests/ root helpers (benchmark/tests/test_shared_codex_runtime.py)

    • test_shared_codex_runtime.py previously imported _environment from tests.control_plane.test_benchmark_current_admission, transitively triggering tests/test_codex_operation_host.py's bare from test_loopx_turn_codex_cli import _request (ModuleNotFoundError when running pytest benchmark/ without tests/ on sys.path).
    • Added a local _sqlite_heartbeat_env fixture reusing tests.control_plane.test_quota_settlement_cli, tests.control_plane.canonical_authority_fixture, tests.control_plane.host_process_fixture, and worker_env.

Verification

  • uv run --extra test python -m pytest -n 4 -q benchmark/ (identical committed tree, isolated env): 1371 passed, 819 skipped in 419.17s (0:06:59) (resolved all 19 baseline failures on dcf208c855; all 819 skips are pre-existing optional external sforge/harbor, LOOPX_NATIVE_CHECKPOINT_BIN, LOOPX_EDGEBENCH_DOCKER_SMOKE, and Linux-only markers).
  • PYTHONPATH=tests uv run --extra test python -m pytest -q tests/control_plane/test_benchmark_checkpoint_admission.py tests/control_plane/test_heartbeat_envelope_transport.py: 65 passed in 279.73s.
  • Post-commit (a75a89c88d):
    • uv run --extra test python examples/run-smokes.py --module benchmark --jobs 2 --json: 4/4 passed (ok: true, failure_count: 0, source_clean: true).
    • uv run --extra test python benchmark/check_deepswe_v1.py: ok: true, original_snapshot_preserved: true.
    • uv run --extra test python benchmark/check_frontiercs2_v1.py: ok: true, original_snapshot_preserved: true (5 files checked).
    • uv run --extra test python -m ruff check benchmark/runtime/checkpoint_wake.py benchmark/tests/test_native_checkpoint.py benchmark/tests/test_sforge_runtime.py benchmark/tests/test_shared_codex_runtime.py benchmark/tests/test_task_entry.py: passed (0 issues; untouched pre-existing benchmark/tests files retain 28 existing style warnings outside this slice).
    • uv run --extra test python -m mypy: Success: no issues found in 17 source files.
    • uv run --extra test python scripts/check_rfc_bilingual.py --base origin/main --head HEAD: passed.
    • loopx check --scan-path ... on all 8 changed files: ok: true, errors: 0 (1 downgraded non-literal warning at test_native_checkpoint.py:405).
    • loopx canary premerge --from-git-diff --git-diff-base origin/main --goal-id personal-loopx-maintenance: direct_checks 4/4 passed, python_compile 1/1 passed, catalog_canaries 9/9 passed (failures: 0), manual_holds: benchmark_sensitive (left OPEN for independent maintainer review).
    • Change-quality receipt (change-quality verify): valid (cqr_54d6303fa8e3088621ac).

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent | Gemini | Google | self_reported

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

动机 / Motivation

受影响的使用者与场景为:使用 benchmark/ 套件、归档校验脚本以及开启 complete-v1 与 fresh_replan 检查点(checkpoint)恢复的基准测试运行器和维护者。

此前一次基准测试清理误删了两个冻结 v1 归档快照中的表面未使用代码,且主干停止在心跳 guard 命令中输出已退役的 --complete-turn 别名后,CheckpointWake 仍按旧收据传递 complete_turn=True 导致真实中断 guard 校验失败;同时 benchmark/tests/test_shared_codex_runtime.py 通过跨目录测试辅助函数间接触发了裸模块导入,使独立执行 pytest benchmark/ 时报 ModuleNotFoundError。本次改动逐字节恢复两处冻结归档并同步 CheckpointWake、文档与独立 SQLite 测试环境夹具,使三类阻塞全部解除。

可观察改进边界:两项冻结 v1 归档校验与 4 项 benchmark smokes 恢复全绿,CheckpointWake 对当前默认 complete-v1 心跳 guard 校验通过且继续拒绝意外注入的 --complete-turn,benchmark/tests/test_shared_codex_runtime.py 无需额外设置 PYTHONPATH=tests 即可独立通过测试。

非目标边界:不修改控制面(loopx/control_plane/)或 CLI 权限/结算语义,不删除向后兼容的旧 guard 历史读取路径,也不重写 benchmark/tests/ 之外的共享测试模块导入布局。

从具体成本看,若不修复此问题,v2.4.0 发布前任何人在干净检出树中运行 check_deepswe_v1.py、check_frontiercs2_v1.py 或独立执行 pytest benchmark/ 都会立刻失败,且启用 LOOPX_COMPLETE_TURN=1 与 fresh_replan 检查点(checkpoint)捕获的心跳唤醒会在中断封存阶段被拒绝。本次提交针对已验证的精确头部 a75a89c88d945df6e50286c05e5c6be3d793a970 精确消除了这三类回归与环境耦合。

改动思路 / Approach

三处修复均落在各自最小职责归属边界:冻结归档逐字节回滚以保护历史快照指纹;CheckpointWake._capture 将 complete_turn 固定为 False 以对齐 builder.py 当前默认 complete-v1 契约,并继续在 _verify_interrupted_guard 侧拒绝意外 --complete-turn 注入;test_shared_codex_runtime.py 通过本地 _sqlite_heartbeat_env 复用既有权威与 Host 夹具,消除对 tests/ 隐式路径依赖。

当前 PR 边界:本 PR 仅限于 benchmark/ 归档快照、CheckpointWake 传输适配、RUNTIME.md 说明及 4 个 benchmark 测试文件(8 个文件 +57/-13),不改动控制面生产逻辑、不弱化任何检查点安全门槛。

具体机制拆解与归属权衡如下:

  1. 冻结归档快照不变性:benchmark/deepswe-gptxhigh-v1/goal_codex.py 与 benchmark/frontiercs2-single-host-v1/local_runner.py 属于已发表或已固化的历史基准测试快照,其 tree SHA-1(1bc5d2b3b74761a97d34ba3f3612e977fd610340)与逐文件 SHA-256 哈希由校验脚本严格锁定。此前清理表面未使用变量与导入破坏了字节一致性,正确的修复方式是逐字节恢复快照原貌,而非修改校验脚本预期哈希。
  2. Complete-v1 默认契约对齐:主干在提交 45dce4c4c8 中停止让 loopx/control_plane/heartbeat/builder.py 在生成的心跳 guard 命令中输出已退役的 --complete-turn 与 --turn-envelope 别名,因为 --runtime-profile generic_cli 与 --decision-output-root 已在 quota_presentation.py 的 compose_quota_work_contract 中自动组合完整 loopx_turn_envelope_v1 契约。由于 CheckpointWake._capture 仍将 self.receipt.get("complete_turn", False) 传给 native_session_checkpoint 的 interrupted_guard 参数,_verify_interrupted_guard 在解析真实生成命令(不含 --complete-turn)时产生布尔值失配并抛出 ValueError。将 CheckpointWake._capture 中的 complete_turn 显式设为 False,既与当前生成的真实命令一致,又能保持 _verify_interrupted_guard 对意外附加 --complete-turn 的拒绝。
  3. 独立测试夹具解耦:benchmark/tests/test_shared_codex_runtime.py 原先导入 tests.control_plane.test_benchmark_current_admission._environment,后者在模块加载阶段通过 test_codex_operation_launch 链式导入 tests/test_codex_operation_host.py,而该文件第 26 行存在裸导入 from test_loopx_turn_codex_cli import _request,导致不带 PYTHONPATH=tests 时直接触发 ModuleNotFoundError。新增本地 _sqlite_heartbeat_env 直接组合 tests.control_plane 下的包级公开夹具,彻底解除该隐式路径耦合。

具体改动 / Changes

文件 变更行数 分类 职责与改动说明
benchmark/deepswe-gptxhigh-v1/goal_codex.py +1/-0 冻结归档 恢复第 231 行 runner_source = getattr(self, "_goal_runner_source", None),还原快照树 SHA-1
benchmark/frontiercs2-single-host-v1/local_runner.py +1/-0 冻结归档 恢复第 16 行 import sys,还原 source-manifest/校验预期 SHA-256
benchmark/runtime/checkpoint_wake.py +3/-1 生产运行时 在 _capture 第 141 行将 interrupted_guard["complete_turn"] 显式固定为 False 并附注释
benchmark/runtime/RUNTIME.md +5/-3 公开文档 第 179-184 行补充当前心跳 guard 默认走 complete v1 且不输出退役别名的说明
benchmark/tests/test_native_checkpoint.py +4/-3 测试 更新 test_held_complete_guard_checkpoint_binds_original_settlement_mode 断言与切换模式反例
benchmark/tests/test_sforge_runtime.py +1/-1 测试 断言生成的 block 中不包含 --complete-turn 与 --turn-envelope
benchmark/tests/test_task_entry.py +2/-1 测试 断言 body 不含退役别名且 --decision-output-root 按预期出现
benchmark/tests/test_shared_codex_runtime.py +40/-4 测试 新增本地 _sqlite_heartbeat_env 替换跨目录 _environment 导入

规范映射(Spec Basis)

对照已接受契约文档 docs/reference/protocols/turn-envelope-v0.md(提交 45dce4c4c83c1bbcd38e126e21f81c0011a4a4a6)的 Complete v1 Host entry 章节审查:

  • TE-C1-DEFAULT(implemented):新生成的 heartbeat 命令默认使用 loopx_turn_envelope_v1 而不再输出 --complete-turn 或 --turn-envelope;已由 CheckpointWake._capture、test_task_entry.py 与 test_sforge_runtime.py 实测覆盖。
  • TE-C1-ALIASES(implemented):--turn-envelope 与 --complete-turn 仍仅作兼容输入区分,_verify_interrupted_guard 对无完整模式绑定却携带 --complete-turn 的命令保持严格拒绝;已由 test_held_complete_guard_checkpoint_binds_original_settlement_mode 的 switched 参数分支实测验证。

关键代码讲解

  1. CheckpointWake._capture(benchmark/runtime/checkpoint_wake.py:98-147):第 134-143 行构造传入 native_session_checkpoint(..., interrupted_guard=guard) 的校验字典。第 141 行将 "complete_turn" 由读取 self.receipt.get("complete_turn", False) 改为显式常量 False(同时保持 "turn_envelope": self.receipt.get("turn_envelope", False))。这样既匹配 builder.py 当前生成的 quota should-run 命令参数,又保留了当受监控命令被意外附加 --complete-turn 时的失败拒绝边界。
  2. LoopxCodex.exec_as_agent(benchmark/deepswe-gptxhigh-v1/goal_codex.py:206-231)与 local_runner.py(benchmark/frontiercs2-single-host-v1/local_runner.py:16):分别恢复第 231 行 runner_source = getattr(self, "_goal_runner_source", None) 与第 16 行 import sys,经比对与 cc5392e953^ 字节完全一致。这两行均位于已冻结历史归档内部,无外部调用方依赖或运行时副作用。
  3. _sqlite_heartbeat_env(benchmark/tests/test_shared_codex_runtime.py:288-323):针对 test_heartbeat_real_native_process_preserves_content_free_host_failure(第 329 行)和 test_native_heartbeat_retry_uses_real_session_owner(第 369 行)仅需要 SQLite 权威初始化和工作进程环境的事实,复用 tests.control_plane.test_quota_settlement_cli、canonical_authority_fixture 与 host_process_fixture 构建隔离环境并注入 LOOPX_CLI,避免引入 tests/test_codex_operation_host.py 的裸导入依赖。
  4. _verify_interrupted_guard(loopx/hosts/codex_checkpoint.py:347-415,未改动):作为既有不变式拥有者,第 371-400 行通过真实 loopx.cli.build_parser().parse_args(argv) 解析被中断命令,要求解析出的 complete_turn 与 guard["complete_turn"] 完全一致;当且仅当两者同为 False 时放行当前默认 complete-v1 命令,并在注入 --complete-turn 时抛出 ValueError。

对主干的风险 / Risks

经正向路径与负向路径验证,本 PR 无阻断性问题(No blocking finding):

  1. 正向与负向演练:
    • 正向:LOOPX_COMPLETE_TURN=1 时,heartbeat_body 生成带 --runtime-profile generic_cli --decision-output-root ... --decision-handoff-socket ... 的 quota should-run 命令(不含 --complete-turn);held_quota_decision 捕获到 schema_version == "loopx_turn_envelope_v1" 的真实决策后,CheckpointWake._capture 传入 "complete_turn": False,_verify_interrupted_guard 校验通过并封存 interrupted_guard["complete_turn"] is False。
    • 负向(fail-closed):若挂起的原生命令被替换为追加了 --complete-turn 的变体(mode_matches=False),parser.parse_args 解析出 complete_turn=True,与 guard["complete_turn"]=False 冲突,_verify_interrupted_guard 仍抛出 ValueError("native pending guard differs from the held packet routes or identity") 且不写入 checkpoint 目录。
    • 基线对比实测(dcf208c855 -> a75a89c88d):在基线 dcf208c855 上,check_deepswe_v1.py 与 check_frontiercs2_v1.py 均以 exit code 1 失败,test_shared_codex_runtime.py 不带 PYTHONPATH=tests 时以 ModuleNotFoundError: No module named 'test_loopx_turn_codex_cli' 失败,且真实 build_heartbeat_prompt(..., complete_turn=True) 生成的命令在旧 complete_turn=True guard 下触发 _verify_interrupted_guard 失败;在精确头部 a75a89c88d 上上述全部恢复通过。
  2. 边缘边界核查:
    • turn_envelope=True 与 fresh_replan 组合路径:benchmark/runtime/worker.py 第 573-579 行的 _qualify_short_envelope 会在进入 CheckpointWake 之前拒绝 fresh_replan 检查点或 C1 返回包,因此 CheckpointWake._capture 第 140 行保留 "turn_envelope": self.receipt.get("turn_envelope", False) 不存在与未发射 --turn-envelope 冲突的可达状态。
    • benchmark/runtime/checkpoint.py 第 234-236 行:预检 capture_before_replan 直接调用 quota should-run 时仍会在 display.complete_turn 为真时附带 --complete-turn。鉴于 quota_registration.py 仍接受该选项且预检不经过 _verify_interrupted_guard,当前完全安全,仅作为非阻断后续清理项记录。
  3. 独立验证矩阵(未等待远程 CI,wait_for_ci: false):
    • benchmark/check_deepswe_v1.py:PASS(original_snapshot_preserved: true, archive_tree: 1bc5d2b3b74761a97d34ba3f3612e977fd610340)
    • benchmark/check_frontiercs2_v1.py:PASS(original_snapshot_preserved: true, files_checked: 5)
    • examples/run-smokes.py --module benchmark --jobs 2 --json:PASS(4/4 passed,failure_count: 0)
    • 目标 benchmark/tests/ 5 个文件(无 PYTHONPATH=tests,隔离 HOME/TMPDIR/--basetemp):PASS(247 passed, 474 skipped)
    • PYTHONPATH=tests 下 tests/control_plane/test_benchmark_checkpoint_admission.py:PASS(24 passed)
    • python -m mypy:PASS(17 source files, 0 issues);ruff check 改动 Python 文件:PASS(0 issues);check_rfc_bilingual.py --base origin/main --head HEAD:PASS;loopx check --scan-path ...(8 个改动文件):PASS(ok: true, errors: 0,1 条测试 token 非字面量降级 warning);loopx canary premerge --from-git-diff --git-diff-base origin/main:直接检查 4/4、编译 1/1、catalog canaries 9/9 均通过,标出 manual_holds: benchmark_sensitive(待独立评审后由维护者决定合并)。
    • 残留风险与未覆盖范围:在 macOS(Darwin)且缺少 LOOPX_NATIVE_CHECKPOINT_BIN、sforge/harbor 及 Docker 环境的本地验证中,跨进程真实 Codex 二进制中断捕获测试(474 项跳过)未在本机执行;此外孤立评审工作树路径指纹与作者工作树不同,本地 canary premerge 提示 quality_receipt_missing,但已独立核对作者生成的 CQR 收据 cqr_54d6303fa8e3088621ac(对应同一 scope_fingerprint 与精确头 a75a89c88d945df6e50286c05e5c6be3d793a970,decision: "pass")。

我的整体评价 / Verdict

综合审阅精确头部 a75a89c88d945df6e50286c05e5c6be3d793a970 的全部 8 个变更文件及周边调用链,本次修改精准解决了 v2.4.0 稳定化前的三项阻塞:冻结 v1 归档快照完全还原、CheckpointWake._capture 与 C1 默认 loopx_turn_envelope_v1 契约恢复一致且保持对退役 --complete-turn 别名的拒绝防护、test_shared_codex_runtime.py 恢复无 PYTHONPATH=tests 的独立运行能力。

  • 长程效果与用户体验(outcome_impact):long_horizon 为 preserved,user_experience 为 preserved;视觉审阅 visual_review 为 not_applicable(原因:本次 PR 仅涉及 benchmark 冻结归档、运行时检查点适配器、RUNTIME.md 文档与 benchmark 测试夹具,不涉及任何前端界面或渲染视图变更(已核对全部 8 个文件 diff)。;unverified_scope: none)。
  • 代码体量与兼容性(code_volume / compatibility_assessment):改动规模精炼(necessary),保留了历史 interrupted_guard 读取与 CLI 旧标志解析兼容性(retain),无重复控制面规则或冗余开关;default_off_isolation 为 not_applicable(非功能门控新增);authority_semantics 为 aligned;未引入或变更共享语义词汇(semantic_alignment 为 not_applicable)。

English verdict: APPROVE — Verified exact head a75a89c restores both frozen v1 archive checksums, aligns CheckpointWake._capture and benchmark tests with C1 default complete-v1 guard output while keeping --complete-turn injection rejected, and isolates test_shared_codex_runtime.py standalone imports; local checks, smokes, and focused suites PASS with no blocking findings (Darwin/external binary skips noted).

@loopx-agent
loopx-agent merged commit 1a1a3b8 into main Nov 20, 2026
24 of 34 checks passed
@loopx-agent
loopx-agent deleted the codex/release-2.4.0-benchmark-fixes-20261121 branch November 20, 2026 19:43
loopx-agent added a commit that referenced this pull request Nov 21, 2026
* fix(cli): preserve typed runtime diagnostics in Turn failures

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): support per-endpoint model preferences and Codex-to-Antigravity failover (#9141)

Signed-off-by: LoopX Agent <[email protected]>

* Keep the prepared Chat adapter available to a retry (#9134)

A failed worker start can finish cleanup after a same-turn retry has
selected the adapter. Keep its lifetime tied to the Session and let
failed dispatch release its own worker registration. The regression
asserts one upstream turn and explicit adapter closure with the Session.

Port the fix from 4453e4bdd77486ec14b952f88ca893310b32e26c.

(cherry picked from commit 173e42b4f051b885c3a3389e1cad9c5722f7b7dd)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover zero-effect monitors and cleared-replan reports (#9143)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): admit flexible_primary_available executor transitions in conversation_scope (#9145)

Signed-off-by: LoopX Agent <[email protected]>

* Verify quota gate scope through signed lane references (#9101)

* test(quota): verify scoped gates through complete lane references

Signed-off-by: LoopX Agent <[email protected]>

* Test canonical quota gates in both public response modes

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Test C1 planning and Host input from the original quota capture (#9102)

* Use recorded quota decisions in the no-Todo settlement regression

Signed-off-by: LoopX Agent <[email protected]>

* Exercise the complete Host prompt from the captured quota source

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Prepare the CLI budget baseline with a private Git index (#9103)

Signed-off-by: LoopX Agent <[email protected]>

* Exercise C1 Goal delivery and bound replan from the saved source (#9104)

Signed-off-by: LoopX Agent <[email protected]>

* Keep long claim overlap scopes on demand (#9086)

* Link long thin-claim overlap lists to their receipts

Signed-off-by: LoopX Agent <[email protected]>

* Read claim overlap details without copying the lease

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): preserve explicit Monitor Todo selection (#9099)

Carry Todo selection provenance into quota admission. Preserve explicit secondary Monitor polling and recovery from previously admitted receipts.

Signed-off-by: LoopX Agent <[email protected]>

* Keep ready Todo scope details on the required context read (#9106)

Signed-off-by: LoopX Agent <[email protected]>

* Fix archive rollback with custom install directories (#9066)

* refactor(core): defer benchmark implementations during capability discovery

Preserve the benchmark toolkit public exports and static types while keeping execution and experiment implementations out of metadata discovery. Qualify source and installed Core paths, and reconcile the paired minimal/Standard RFC boundary without changing activation or authority defaults.

Signed-off-by: cicolord <[email protected]>

* Defer Yardstick evaluation until an enabled Explore read

Signed-off-by: cicolord <[email protected]>

* Omit empty Todo summary lanes from ordinary Worker context

Signed-off-by: cicolord <[email protected]>

* fix(update): honor configured archive directories during rollback

Signed-off-by: LoopX Agent <[email protected]>

* fix(lark): replay recall guard on current main

Signed-off-by: huangruiteng <[email protected]>

* docs: record the verified LoopX 2.3.0 release baseline

Signed-off-by: LoopX Agent <[email protected]>

* Preserve quota spend source when prepared work is admitted

Signed-off-by: LoopX Agent <[email protected]>

* test(quota): qualify native saved complete-Turn checkpoints

Signed-off-by: LoopX Agent <[email protected]>

* Retry cleanup of an owned file mutation marker

Signed-off-by: LoopX Agent <[email protected]>

* Keep synthetic Git-path test data outside the public source scan

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): share native preparation wait with readiness

Signed-off-by: LoopX Agent <[email protected]>

* fix(doctor): bind package update readback to its Python environment

Signed-off-by: LoopX Agent <[email protected]>

* Keep Doctor discovery separate from service activation

Signed-off-by: LoopX Agent <[email protected]>

* Verify the recorded Python launcher before Doctor probes it

Signed-off-by: LoopX Agent <[email protected]>

* fix(desktop): require runtime qualification for macOS preview updates

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): reuse replan projection owners during recovery

Signed-off-by: LoopX Agent <[email protected]>

* Qualify Codex 0.169 native context replay on main

Signed-off-by: LoopX Agent <[email protected]>

* Stop regenerating retired quota view aliases

Signed-off-by: LoopX Agent <[email protected]>

* fix: pin deferred native context reads to the original capture

Signed-off-by: LoopX Agent <[email protected]>

* Keep native capture navigation within small output budgets

Signed-off-by: LoopX Agent <[email protected]>

* Retire legacy heartbeat work prompt generation

Signed-off-by: LoopX Agent <[email protected]>

* Capture C1 composition failures as receipt diagnostics

Signed-off-by: LoopX Agent <[email protected]>

* Recover interrupted native Todo readiness from the original Turn

Signed-off-by: LoopX Agent <[email protected]>

* Revalidate the original lease before publishing resumed native context

Signed-off-by: LoopX Agent <[email protected]>

* Fence native readiness publication with the canonical lease writer

Signed-off-by: LoopX Agent <[email protected]>

* fix(scheduler): keep Codex fallback on the original C1 runtime

Signed-off-by: LoopX Agent <[email protected]>

* fix(scheduler): pin the originating fallback launchers

Signed-off-by: LoopX Agent <[email protected]>

* Retire the duplicate Codex App scheduler projection

Signed-off-by: LoopX Agent <[email protected]>

* Seed the recorded scheduler profile in the elapsed-backoff fixture

Signed-off-by: LoopX Agent <[email protected]>

* Verify canonical cadence on refused and settled Turns

Signed-off-by: LoopX Agent <[email protected]>

* Pin named Core commands in saved scheduler fallbacks

Signed-off-by: LoopX Agent <[email protected]>

* fix(research): preserve saved case addresses when a version cannot open

Signed-off-by: LoopX Agent <[email protected]>

* Preserve citation focus after a saved study refresh

Signed-off-by: LoopX Agent <[email protected]>

* Capture authenticated LoopX receipts for Research attention (#8790)

* feat(research): capture authenticated LoopX attention receipts

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* fix(research): tighten attention receipt provenance

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* fix(research): publish attention captures after source validation

Signed-off-by: huangruiteng <[email protected]>

---------

Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: huangruiteng <[email protected]>

* Recover the original Session and Turn from a confirmed Chat task

Signed-off-by: huangruiteng <[email protected]>

* perf(lark,native_chat): eliminate redundant full-directory JSON reparsing in steward chat loops (#9041)

* perf(lark,native_chat): avoid full directory reparsing in steward chat loops

- Make LarkOwnerAttention._route iterate capture candidates lazily so matching stops at the newest valid p2p capture.
- Reuse FileChatDiscovery in PrivateIngressObserver._records while preserving strict field validation and fail-closed errors.
- Reuse FileChatDiscovery in ChatExternalConversations.pending so unchanged request journals skip redundant JSON reads and stay mutation-isolated.
- Add regression and scan-efficiency tests in tests/test_lark_steward_directory_scan_perf.py.

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): project small recovery metadata fields to stop data_url memory growth

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* Retire transitional smoke checks and duplicate execution (#9073)

Signed-off-by: lusendong.6789 <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* feat(steward): support probe-gated generic continuous_monitor todos with handoff and user actions (#9074)

Signed-off-by: LoopX Agent <[email protected]>

* Remove redundant defensive prose from prompts and comments (#9072)

Remove redundant defensive prose while preserving published heartbeat wrappers and externally managed skill readiness.

Validated with 197 related tests, independent historical wrapper migrations and negative cases, installed-skill readback, and current-main quick canary. Existing CI qualification and infrastructure limitations remain recorded in PR #9072.

Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>

* Keep original Chat retry errors visible during receipt refresh

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): tolerate report validator python drift and allow cancel of mid-turn failed reports (#9077)

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): add exact-head PR review signals and protected merge confirmation (#9081)

Signed-off-by: LoopX Agent <[email protected]>

* feat(steward): add isolated OpenViking long-term memory with per-speaker boundaries (#9083)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(content-ops): slim surface module and eliminate Any (#8961)

* refactor(content-ops): slim surface module and eliminate Any

Signed-off-by: LoopX Agent <[email protected]>

* fix(content-ops): reject malformed angle source_item_ids containers

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(collaboration): batch handoff query Goal lifetime guard lock per Goal (#9085)

Signed-off-by: LoopX Agent <[email protected]>

* fix(hosts): raise managed service startup readiness timeout to 45s (#9087)

Signed-off-by: LoopX Agent <[email protected]>

* perf(manager-context): memoize history_inspect lifecycle checks and scope runtime revision in handoffs query (#9088)

Eliminate the remaining O(N) Effect runtime RPCs and uncached runtime fingerprinting inside tracking.query(): enter effect_runtime_request_scope() for the query, memoize pure history_inspect lifecycle decisions across entries sharing identical Goal refs while holding the Goal lifetime guard, lazily discover legacy ingress files only when external audience recovery needs them, and preserve entry scan order across Goal batches.

Signed-off-by: LoopX Agent <[email protected]>

* refactor(lark): slim private_conversations below 2000 lines with net LOC reduction (#8929)

Signed-off-by: LoopX Agent <[email protected]>

* perf(chat,hosts): skip frontend source re-hashing on immutable installed releases and extend readiness timeout to 90s (#9089)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(control-plane): split and slim quota monitor_poll_commit (#8885)

* refactor(control-plane): split and slim quota monitor_poll_commit

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): preserve legacy lane budget and observation diagnostic order

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* refactor(quota): slim loopx/quota.py and tighten Any count to zero (#8939)

Signed-off-by: LoopX Agent <[email protected]>

* refactor(native-chat): slim external_conversations below 2k lines and retire ceiling (#8911)

* refactor(native-chat): move steward commission mixin to steward_commands and retire external_conversations ceiling

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): respect include_raw_response in retained result recovery

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* refactor(chat): slim chat_runtime below 1,500 lines, fix entry-point project_contexts guard, and retire ceiling (#8920)

* refactor(chat): move session lifecycle mixin to session_open, deduplicate runtime helpers, and retire ceiling

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): drop turn_done_events slot before waking waiters on Thread.start failure

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): paginate open PR signal GraphQL, allow signal-unavailable monitor recovery, and cache private delivery scans (#9093)

Signed-off-by: LoopX Agent <[email protected]>

* perf(lark,native_chat): back off noop recovery retries and cache recovery lookups (#9096)

Signed-off-by: LoopX Agent <[email protected]>

* perf(native_chat,lark): cache unchanged quota backlog health and interrupt observations (#9098)

Signed-off-by: LoopX Agent <[email protected]>

* perf(lark,native_chat): coalesce listener snapshots and cache recovery event summaries (#9100)

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: cicolord <[email protected]>
Signed-off-by: LoopX Agent <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>
Co-authored-by: cicolord <[email protected]>
Co-authored-by: huangruiteng <[email protected]>
Co-authored-by: Lusen Dong <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>

* refactor(issue-fix): consolidate maintainer-correction admission and slim pr_lifecycle (#8897)

Signed-off-by: LoopX Agent <[email protected]>

* Fix truncated requests and responses in the Codex API relay (#8713)

* fix(codex relay): fence incomplete model requests before drain

Signed-off-by: LoopX Agent <[email protected]>

* fix(codex relay): surface incomplete upstream responses

Port the verified response framing fix to the request-admission branch. Original candidate 27bc3aee311cdfc6a00466ff9d3b58c7db36e01b.

Signed-off-by: LoopX Agent <[email protected]>

* Bound Codex relay writes to clients that stop reading

Signed-off-by: LoopX Agent <[email protected]>

* Reject upstream chunked responses missing the trailer terminator

Signed-off-by: LoopX Agent <[email protected]>

* Validate upstream chunk data delimiters before relay completion

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): repair dsh closeout test, antigravity failover alias, and release download retry (#9147)

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): update v2.4.0 release notes and dsh-loopx-plugin 0.1.1-beta.7 README (#9149)

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): recover saved answers and diagnose lost workers (#9120)

* fix(chat): recover saved answers and diagnose lost workers

Signed-off-by: LoopX Agent <[email protected]>

* style(lark): keep private_conversations within module line budget

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): retain execution_worker_exited in pending backlog count

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(chat): resume steward requests lost before dispatch (#9125)

Signed-off-by: LoopX Agent <[email protected]>

* fix(benchmark): restore frozen v1 archives and align checkpoint/runtime tests with C1 defaults (#9151)

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): stabilize CLI help, architecture guards, onboarding gate, and public smokes (#9152)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover report selection across python upgrades and prevent queue kill on observation monitors (#9155)

Signed-off-by: LoopX Agent <[email protected]>

* fix(release): align extensions, chat, presentation, and transport tests for v2.4.0 (#9156)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice (Slice B1) (#9154)

* fix(control-plane): stabilize v2.4.0 quota, turn-envelope, and capabilities slice

Signed-off-by: LoopX Agent <[email protected]>

* fix(quota): preserve tokenless identity and exact numeric types in attach_complete_turn_context

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover frozen report contract failures and rebind resumed task leases (#9157)

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): recover pre-dispatch runtime failures across endpoints and stop receipt-unknown disk churn (#9159)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control_plane): align lease recovery, settlement readback, and runtime fixtures (#9158)

* fix(control_plane): align lease recovery, settlement readback, and runtime fixtures

Signed-off-by: LoopX Agent <[email protected]>

* fix(control_plane): forward record_capture in worker outage test and harden version type guard

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 explore, context, and checkpoint tail slice (Slice B4) (#9161)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): stabilize v2.4.0 replan, monitor recovery, and staged-read slice (Slice B5) (#9160)

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording (#9162)

* docs(release): reconcile final v2.4.0 stabilization PRs and boundary wording

Signed-off-by: LoopX Agent <[email protected]>

* docs(release): align #9158 and #9161 descriptions with verified commits

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>

* fix(steward): tolerate minor JSON delimiter glitches and recover saved report candidates (#9164)

Signed-off-by: LoopX Agent <[email protected]>

* fix(control-plane): preserve bound yardstick reversals in native replan openings (#9165)

Signed-off-by: LoopX Agent <[email protected]>

* fix(native-chat): recover loopback relay 401 failures and isolate test auth (#9167)

Signed-off-by: LoopX Agent <[email protected]>

---------

Signed-off-by: LoopX Agent <[email protected]>
Signed-off-by: cicolord <[email protected]>
Signed-off-by: huangruiteng <[email protected]>
Signed-off-by: lusendong.6789 <[email protected]>
Signed-off-by: Lusen Dong <[email protected]>
Co-authored-by: cicolord <[email protected]>
Co-authored-by: huangruiteng <[email protected]>
Co-authored-by: Lusen Dong <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant